A Great Vim Cheat Sheet
I’ve compiled a list of essential Vim commands that I use every day. I have then given a few instructions on how to make Vim as great as it should be, because it’s painful without configuration.
Essentials
Cursor movement (Normal/Visual Mode)
h j k l - Arrow keys
w / b - Next/previous word
W / B - Next/previous word (space seperated)
e / ge - Next/previous end of word
0 / $ - Start/End of line
^ - First non-blank character of line (same as 0w)
Editing text
i / a - Start insert mode at/after cursor
I / A - Start insert mode at the beginning/end of the line
o / O - Add blank line below/above current line
Esc or Ctrl+[ - Exit insert mode
d - Delete
dd - Delete line
c - Delete, then start insert mode
cc - Delete line, then start insert mode
Operators
Operators also work in Visual Mode
d - Deletes from the cursor to the movement location
c - Deletes from the cursor to the movement location, then starts insert mode
y - Copy from the cursor to the movement location
> - Indent one level
|